package com.lorenzogao.pley.ui.di.moduel

import android.app.Application
import com.google.gson.Gson
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
 * 作者：Lorenzo Gao
 * Date: 2017/12/27
 * Time: 13:24
 * 邮箱：2508719070@qq.com
 * Description:
 */

@Module
class AppModule(application: Application) {

    private val mApplication: Application = application


    @Provides
    @Singleton
    fun provideApplication(): Application {
        return mApplication
    }


    @Provides
    @Singleton
    fun provideGson(): Gson {
        return Gson()
    }



}